<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
    <title>应急管理平台</title>
    <meta content="Admin Dashboard" name="description"/>
    <meta content="Mannatthemes" name="author"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>

    <link rel="shortcut icon" href="images/favicon.ico">
    <!--<link href="/assets/plugins/morris/morris.css" rel="stylesheet">-->
    <link href="css/bootstrap.min.css" rel="stylesheet" type="text/css">
    <link href="css/style.css" rel="stylesheet" type="text/css">
    <link href="css/icons.css" rel="stylesheet" type="text/css">
    <style>

        html {
            overflow-y: hidden;
        }


        :root {
            overflow-y: hidden;
            overflow-x: hidden;
        }


        :root body {
            position: absolute;
        }


        body {
            width: 100vw;
            overflow: hidden;
        }
    </style>
</head>


<body>

<!-- Loader -->
<div id="preloader">
    <div id="status">
        <div class="spinner"></div>
    </div>
</div>

<!-- Navigation Bar-->
<header id="topnav">
    <div class="topbar-main">
        <div class="container-fluid">

            <div class="logo">
                <a onclick="navigate('/main')">
                   <!-- <img src="images/logo2.png" alt="" class="logo-large">-->
                    <h1 class="logo-large"><i class="mdi mdi-alert-outline"></i> 应急管理平台</h1>
                </a>
            </div>
            <!-- End Logo container-->
            <div class="navbar-custom menu-extras topbar-custom" style="background-color: #ffffff">
                <div class="container-fluid">
                    <div id="navigation">
                        <!-- Navigation Menu-->
                        <ul class="navigation-menu text-center">
                            <li class="has-submenu "><a onclick="navigate('/org')"><i class="mdi mdi-account-card-details"></i>应急机构</a></li>

                            <li><a onclick="navigate('/plan')"><i class="mdi mdi-book-multiple"></i>应急预案</a></li>

                            <li class="has-submenu"><a onclick="navigate('/res')"><i class="mdi mdi-briefcase"></i>应急资源</a>
                                <ul class="submenu">
                                    <li class="dropdown-item"><a onclick="navigate('/res_expert')"> 应急专家</a></li>
                                    <li class="dropdown-item"><a onclick="navigate('/res_team')"> 应急队伍</a></li>
                                    <li class="dropdown-item"><a onclick="navigate('/res_supplies')"> 应急物资</a></li>
                                    <li class="dropdown-item"><a onclick="navigate('/res_ship')"> 应急船舶</a></li>
                                    <li class="dropdown-item"><a onclick="navigate('/res_helicopter')"> 应急直升机</a></li>
                                    <li class="dropdown-item"><a onclick="navigate('/res_external_res')"> 外部应急资源</a>
                                    </li>
                                </ul>
                            </li>

                            <li class="has-submenu "><a onclick="navigate('/record')"><i class="mdi mdi-calendar-clock"></i>应急记录</a>
                                <ul class="submenu">
                                    <li class="dropdown-item"><a onclick="navigate('/record_exercise')"> 应急演习</a></li>
                                    <li class="dropdown-item"><a onclick="navigate('/record_train')"> 应急培训</a></li>
                                    <li class="dropdown-item"><a onclick="navigate('/record_response')"> 应急响应</a></li>
                                    <li class="dropdown-item"><a onclick="navigate('/record_disaster')"> 应急灾害</a></li>
                                </ul>
                            </li>

                            <li class="has-submenu "><a onclick="navigate('/statistics')"><i class="mdi mdi-calendar-clock"></i>统计查询</a>
                                <ul class="submenu">
                                    <li class="dropdown-item"><a onclick="navigate('/res_statistics')">资源统计</a></li>
                                    <li class="dropdown-item"><a onclick="navigate('/response_statistics')">响应能力统计</a></li>
                                </ul>
                            </li>

                            <li class="has-submenu "><a onclick="navigate('/maps')"><i class="mdi mdi-google-maps"></i>地图平台</a></li>

                            <li class="has-submenu "><a onclick="navigate('/foreign')"><i class="mdi mdi-ambulance"></i>对外救助</a>
                                <ul class="submenu">
                                    <li class="dropdown-item"><a onclick="navigate('/foreign_main')">主要信息</a></li>
                                    <li class="dropdown-item"><a onclick="navigate('/foreign_base')">基本信息</a></li>
                                    <li class="dropdown-item"><a onclick="navigate('/foreign_vessel_number')">搜救船次</a></li>
                                    <li class="dropdown-item"><a onclick="navigate('/foreign_sorties')">搜救架次</a></li>
                                </ul>
                            </li>
                            <li class="has-submenu "><a onclick="navigate('/laws')"><i class="mdi mdi-book-open-page-variant"></i>法律法规</a></li>

                            <li class="has-submenu"><a onclick="navigate('/system')"><i class="mdi mdi-settings"></i>系统管理</a>
                                <ul class="submenu">
                                    <li class="dropdown-item"><a onclick="navigate('/user')">用户管理</a></li>
                                    <li class="dropdown-item"><a onclick="navigate('/permission')">权限管理</a></li>
                                    <li class="dropdown-item"><a onclick="navigate('/roles')">角色管理</a></li>
                                    <li class="dropdown-item"><a onclick="navigate('/department')">组织机构 </a></li>
                                    <li class="dropdown-item"><a onclick="navigate('/logInfo')">登录记录</a></li>
                                    <li class="dropdown-item"><a onclick="navigate('/operate')">操作记录</a></li>
                                </ul>
                            </li>

                            <li class="has-submenu" style="float: right">
                                <a class="nav-link dropdown-toggle arrow-none waves-effect nav-user"
                                   data-toggle="dropdown" href="#" role="button" aria-haspopup="false"
                                   aria-expanded="false">
                                    <img src="images/users/avatar-1.jpg" alt="user" class="rounded-circle">
                                </a>
                                <div class="dropdown-menu dropdown-menu-right profile-dropdown ">
                                    <div class="dropdown-item noti-title">
                                        <h5>Welcome</h5>
                                    </div>
                                    <a class="dropdown-item" onclick="navigate('/backup')"><i class="mdi mdi-account-circle m-r-5 text-muted"></i>备份数据库</a>
                             <!--       <a class="dropdown-item" href="#"><i class="mdi mdi-wallet m-r-5 text-muted"></i>暂时不知道写啥</a>
                                    &lt;!&ndash;<a class="dropdown-item" href="#"><span
                                            class="badge badge-success float-right">5</span><i
                                            class="mdi mdi-settings m-r-5 text-muted"></i> Settings</a>&ndash;&gt;
                                    <a class="dropdown-item" href="#"><i class="mdi mdi-lock-open-outline m-r-5 text-muted"></i> Lock screen</a>-->
                                    <div class="dropdown-divider"></div>
                                    <a class="dropdown-item" href="/logout"><i class="mdi mdi-logout m-r-5 text-muted"></i>退出登录</a>
                                </div>
                            </li>
                        </ul>
                        <!-- End navigation menu -->
                    </div> <!-- end #navigation -->
                </div> <!-- end container -->

            </div>

            <div class="menu-extras topbar-custom">
                <ul class="list-inline float-right mb-0">
                    <li class="menu-item list-inline-item">
                        <!-- Mobile menu toggle-->
                        <a class="navbar-toggle nav-link" id="menu-toggle">
                            <div class="lines">
                                <span></span>
                                <span></span>
                                <span></span>
                            </div>
                        </a>
                        <!-- End mobile menu toggle-->
                    </li>
                </ul>

            </div>
            <!-- end menu-extras -->

            <!--<div class="clearfix"></div>-->

        </div> <!-- end container -->
    </div>
    <!-- end topbar-main -->
</header>
<!-- End Navigation Bar-->
<div class="wrapper" style="padding-top:80px">
    <div class="container-fluid">
        <iframe scrolling="no"  style="width: 100%;height: 900px" frameBorder="0" id="content" name="content" src="/main"></iframe>
    </div> <!-- end container -->
</div>


<!-- end wrapper -->

<!-- jQuery  -->
<script src="js/lib/jquery.min.js"></script>
<script src="js/lib/popper.min.js"></script>
<script src="js/lib/bootstrap.min.js"></script>
<script src="js/lib/modernizr.min.js"></script>
<script src="js/lib/waves.js"></script>
<script src="js/lib/jquery.nicescroll.js"></script>

<!-- App js -->
<script src="js/lib/app.js"></script>
<script src="js/pages/main.js"></script>

<script>

    //改变iframe页面
    //解决iframe嵌套问题
    if (self !== top) {
        top.location.href = window.location.href;
    }

    //刷新iframe页面
    $('#refresh').on('click', function () {
        let $iframe = $('iframe');
        $iframe.attr('src', $iframe.attr('src'));
    });
</script>
</body>
</html>